package org.nimi317.web_gis.form.put;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

/**
 * @author thunderobot
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class JobPut {

    @NotNull
    private Integer id;

    @NotBlank
    @Length(max = 255)
    private String cron;

    @NotBlank
    @Length(min = 1, max = 255)
    private String remark;
}
